.TH "log/service_logger.hpp" 3 "Thu Jun 3 2021" "Detail" \" -*- nroff -*-
.ad l
.nh
.SH NAME
log/service_logger.hpp \- 服务日志  

.SH SYNOPSIS
.br
.PP
\fC#include <cstdarg>\fP
.br
\fC#include <cstdio>\fP
.br
\fC#include 'box/service_context\&.hh'\fP
.br
\fC#include 'box/service_logger\&.hh'\fP
.br
\fC#include 'klogger/klogger/interface/logger\&.h'\fP
.br
\fC#include 'service_tool\&.hpp'\fP
.br
\fC#include 'singleton\&.hpp'\fP
.br
\fC#include <string>\fP
.br

.SS "Classes"

.in +1c
.ti -1c
.RI "class \fBguild_service::common::service_logger\fP"
.br
.in -1c
.SS "Macros"

.in +1c
.ti -1c
.RI "#define \fBServiceLoggerSingleton\fP(\&.\&.\&.)     (*common::singleton<common::service_logger>::instance(__VA_ARGS__))"
.br
.ti -1c
.RI "#define \fB__FILENAME__\fP   (strrchr('/' __FILE__, '/') + 1)"
.br
.ti -1c
.RI "#define \fBLOG_DEBUG\fP(format, \&.\&.\&.)"
.br
.ti -1c
.RI "#define \fBLOG_INFO\fP(format, \&.\&.\&.)"
.br
.ti -1c
.RI "#define \fBLOG_WARN\fP(format, \&.\&.\&.)"
.br
.ti -1c
.RI "#define \fBLOG_EXCEPT\fP(format, \&.\&.\&.)"
.br
.ti -1c
.RI "#define \fBLOG_FAIL\fP(format, \&.\&.\&.)"
.br
.ti -1c
.RI "#define \fBLOG_BEGIN_S\fP     ' \- ' << __func__ << ' ' << __FILENAME__ << ':' << __LINE__ << ' '"
.br
.ti -1c
.RI "#define \fBLOG_DEBUG_S\fP   guild_service::log_debug() << LOG_BEGIN_S"
.br
.ti -1c
.RI "#define \fBLOG_INFO_S\fP   guild_service::log_info() << LOG_BEGIN_S"
.br
.ti -1c
.RI "#define \fBLOG_WARN_S\fP   guild_service::log_warn() << LOG_BEGIN_S"
.br
.ti -1c
.RI "#define \fBLOG_EXCEPT_S\fP   guild_service::log_except() << LOG_BEGIN_S"
.br
.ti -1c
.RI "#define \fBLOG_FAIL_S\fP   guild_service::log_fail() << LOG_BEGIN_S"
.br
.ti -1c
.RI "#define \fBLOG_END_S\fP   kratos::service::EndLog()"
.br
.in -1c
.SS "Typedefs"

.in +1c
.ti -1c
.RI "using \fBguild_service::logger_level_type\fP = guild_service::common::service_logger::logger_level_type"
.br
.RI "日志等级类型 "
.in -1c
.SH "Detailed Description"
.PP 
服务日志 


.PP
\fBDate\fP
.RS 4
2021/04/15 20:16
.RE
.PP
\fBAuthor\fP
.RS 4
harrybao (harrybao@123u.com)
.RE
.PP
\fBVersion\fP
.RS 4
v1\&.0\&.0
.RE
.PP
\fBCopyright\fP
.RS 4
Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司
.RE
.PP
\fBhistory:\fP
.RS 4
Date Version Author Description 2021/04/15 20:16 1\&.0\&.0 harrybao 创建初始版本 
.RE
.PP

.SH "Macro Definition Documentation"
.PP 
.SS "#define LOG_DEBUG(format,  \&.\&.\&.)"
\fBValue:\fP
.PP
.nf
  guild_service::log_it(guild_service::logger_level_type::DIAGNOSE, \
                        " " format " - %s(%s:%d) ", ##__VA_ARGS__,  \
                        __FUNCTION__, __FILENAME__, __LINE__)
.fi
.SS "#define LOG_EXCEPT(format,  \&.\&.\&.)"
\fBValue:\fP
.PP
.nf
  guild_service::log_it(guild_service::logger_level_type::EXCEPTION, \
                        " " format " - %s(%s:%d) ", ##__VA_ARGS__,   \
                        __FUNCTION__, __FILENAME__, __LINE__)
.fi
.SS "#define LOG_FAIL(format,  \&.\&.\&.)"
\fBValue:\fP
.PP
.nf
  guild_service::log_it(guild_service::logger_level_type::FAILURE, \
                        " " format " - %s(%s:%d) ", ##__VA_ARGS__, \
                        __FUNCTION__, __FILENAME__, __LINE__)
.fi
.SS "#define LOG_INFO(format,  \&.\&.\&.)"
\fBValue:\fP
.PP
.nf
  guild_service::log_it(guild_service::logger_level_type::INFORMATION, \
                        " " format " - %s(%s:%d) ", ##__VA_ARGS__,     \
                        __FUNCTION__, __FILENAME__, __LINE__)
.fi
.SS "#define LOG_WARN(format,  \&.\&.\&.)"
\fBValue:\fP
.PP
.nf
  guild_service::log_it(guild_service::logger_level_type::WARNING, \
                        " " format " - %s(%s:%d) ", ##__VA_ARGS__, \
                        __FUNCTION__, __FILENAME__, __LINE__)
.fi
.SH "Author"
.PP 
Generated automatically by Doxygen for Detail from the source code\&.
